import java.util.Scanner;

public class Test08 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (true) {
            System.out.print("请输入一个不小于 6 的偶数（输入 0 退出）：");
            int input = sc.nextInt();
            if (input == 0) {
                System.out.println("程序退出。");
                break;
            }
            if (input < 6 || input % 2 != 0) {
                System.out.println("输入不合法");
                continue;
            }
            for (int x = 3; x <= input / 2; x += 2) {
                int y = input - x;
                boolean isXPrime = true;
                boolean isYPrime = true;

                // 判断 x 是否为素数
                if (x < 2) {
                    isXPrime = false;
                } else {
                    for (int i = 2; i * i <= y; i++) {
                        if (x % i == 0) {
                            isXPrime = false;
                            break;
                        }
                    }
                }

                // 判断 y 是否为素数
                if (y < 2) {
                    isYPrime = false;
                } else {
                    for (int i = 2; i * i <= y; i++) {
                        if (y % i == 0) {
                            isYPrime = false;
                            break;
                        }
                    }
                }
                if (isXPrime && isYPrime) {
                    System.out.println(input + " = " + x + " + " + y);
                    break;
                }
            }
        }
    }
}